


<?
//===========上传ICON===========
//2021058025开始使用函数来到===========上传图片

if (is_uploaded_file($_FILES['icon']['tmp_name']))
{
    $prom["upfile"] = $_FILES["icon"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_icon'] = upload_file($prom);
}
?>






<?php
//===========上传Banner===========
if (is_uploaded_file($_FILES['banner']['tmp_name']))
{
    $prom["upfile"] = $_FILES["banner"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_banner'] = upload_file($prom);
}

?>






<?php
//===========上传images1~5===========
if (is_uploaded_file($_FILES['upfile1']['tmp_name']))
{
    $prom["upfile"] = $_FILES["upfile1"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_image1'] = upload_file($prom);
}

?>


<?php
//===========上传images1~5===========
if (is_uploaded_file($_FILES['upfile2']['tmp_name']))
{
    $prom["upfile"] = $_FILES["upfile2"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_image2'] = upload_file($prom);
}

?>


<?php
//===========上传images1~5===========
if (is_uploaded_file($_FILES['upfile3']['tmp_name']))
{
    $prom["upfile"] = $_FILES["upfile3"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_image3'] = upload_file($prom);
}

?>








<?php
//===========上传images1~5===========
if (is_uploaded_file($_FILES['upfile4']['tmp_name']))
{
    $prom["upfile"] = $_FILES["upfile4"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_image4'] = upload_file($prom);
}

?>



<?php
//===========上传images1~5===========
if (is_uploaded_file($_FILES['upfile5']['tmp_name']))
{
    $prom["upfile"] = $_FILES["upfile5"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_image5'] = upload_file($prom);
}

?>





<?php
//===========上传images6~10===========
if (is_uploaded_file($_FILES['upfile6']['tmp_name']))
{
    $prom["upfile"] = $_FILES["upfile6"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_image6'] = upload_file($prom);
}

?>



<?php
//===========上传images6~10===========
if (is_uploaded_file($_FILES['upfile7']['tmp_name']))
{
    $prom["upfile"] = $_FILES["upfile7"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_image7'] = upload_file($prom);
}

?>




<?php
//===========上传images6~10===========
if (is_uploaded_file($_FILES['upfile8']['tmp_name']))
{
    $prom["upfile"] = $_FILES["upfile8"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_image8'] = upload_file($prom);
}

?>


<?php
//===========上传images6~10===========
if (is_uploaded_file($_FILES['upfile9']['tmp_name']))
{
    $prom["upfile"] = $_FILES["upfile9"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_image9'] = upload_file($prom);
}

?>


<?php
//===========上传images6~10===========
if (is_uploaded_file($_FILES['upfile10']['tmp_name']))
{
    $prom["upfile"] = $_FILES["upfile10"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_image10'] = upload_file($prom);
}

?>





<?php
//===========上传备用图片===========
if (is_uploaded_file($_FILES['extend_img']['tmp_name']))
{
    $prom["upfile"] = $_FILES["extend_img"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');
    $_REQUEST['ai_extend_img'] = upload_file($prom);
}

?>


<?php
//===========上传附件===========
if (is_uploaded_file($_FILES['attachment']['tmp_name']))
{
    $prom["upfile"] = $_FILES["attachment"];
    $prom["path"] = '../../uploadfiles/' . $theme_folder . '/';
    $prom["allowExt"] = array('jpeg','jpg','png','gif','bmp','rar','exe','pdf','zip','mov','mp4','txt','doc','xmls','ppt','pptx','docx');
    $_REQUEST['ai_attachment'] = upload_file($prom);
}

?>


